package com.caesar.Exercise;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caesar
 * @date 2025/7/12
 * @Description:
 * @apiNote
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private  int Id;
    private String Name;
    private int age;
    private double salary;
    protected String getBasicInfo(){
        return "\t员工编号："+Id+"\t\t员工姓名："+Name+"\t\t员工年龄\t\t："+age;
    }

    @Override
    public String toString() {
        return getBasicInfo();
    }
}
